home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Aventura / alaskan-adversary.swf / scripts / frame_68 / PlaceObject2_1015_390 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2008-09-11  |  9.4 KB  |  264 lines

  1. onClipEvent(enterFrame){
  2.    function ┬º\x01\x02┬º()
  3.    {
  4.       return 2499 % 511 * 5;
  5.    }
  6.    var ┬º\x01┬º = -1828 + "\x01\x02"();
  7.    while(true)
  8.    {
  9.       if(eval("\x01") == 447)
  10.       {
  11.          set("\x01",eval("\x01") - 141);
  12.          ┬º┬ºpush(true);
  13.       }
  14.       else if(eval("\x01") == 404)
  15.       {
  16.          set("\x01",eval("\x01") - 2);
  17.          ┬º┬ºpush(eval(function ┬º\x01\x02┬º()
  18.          {
  19.             return 2499 % 511 * 5;
  20.          }));
  21.       }
  22.       else if(eval("\x01") == 306)
  23.       {
  24.          set("\x01",eval("\x01") + 430);
  25.          if(function ┬º\x01\x02┬º()
  26.          {
  27.             return 2499 % 511 * 5;
  28.          })
  29.          {
  30.             set("\x01",eval("\x01") - 106);
  31.          }
  32.       }
  33.       else if(eval("\x01") == 971)
  34.       {
  35.          set("\x01",eval("\x01") - 567);
  36.          ┬º┬ºpush("\x0f");
  37.       }
  38.       else if(eval("\x01") == 203)
  39.       {
  40.          set("\x01",eval("\x01") + 26);
  41.       }
  42.       else if(eval("\x01") == 312)
  43.       {
  44.          set("\x01",eval("\x01") + 659);
  45.          var ┬º┬ºpop() = function ┬º\x01\x02┬º()
  46.          {
  47.             return 2499 % 511 * 5;
  48.          };
  49.       }
  50.       else
  51.       {
  52.          if(eval("\x01") == 229)
  53.          {
  54.             set("\x01",eval("\x01") + 185);
  55.             if(_root.paus3)
  56.             {
  57.                speed = 0;
  58.                maxspeed = 0;
  59.             }
  60.             if(!_root.paus3)
  61.             {
  62.                if(this.hitTest(_root.camera))
  63.                {
  64.                   speed = 0;
  65.                   maxspeed = 10;
  66.                   damage = 0;
  67.                   grav++;
  68.                   _Y = _Y + grav;
  69.                   while(_root.ground.hitTest(_X,_Y,true))
  70.                   {
  71.                      _Y--;
  72.                      grav = 0;
  73.                   }
  74.                   if(_root.ground.hitTest(_X + _width / 2 + ex,_Y - _height / 2,true) || _root.ground.hitTest(_X + _width / 2 + ex,_Y - _height / 6,true) || _root.ground.hitTest(_X + _width / 2 + ex,_Y - _height,true))
  75.                   {
  76.                      _X = _X - speed;
  77.                   }
  78.                   if(_root.ground.hitTest(_X - _width / 2 - ex,_Y - _height / 2,true) || _root.ground.hitTest(_X - _width / 2 - ex,_Y - _height / 6,true) || _root.ground.hitTest(_X - _width / 2 - ex,_Y - _height,true))
  79.                   {
  80.                      _X = _X + speed;
  81.                   }
  82.                   if(_root.ground.hitTest(_X,_Y - _height - 15,true))
  83.                   {
  84.                      grav = 1;
  85.                   }
  86.                   moving = 0;
  87.                   above = 0;
  88.                   if(this._x < _root.char._x && !attack && !above && !this.hitTest(_root.char) && this._currentframe != 10 && this._currentframe != 15 && this._currentframe != 20 && this._currentframe != 25 && this._currentframe != 30 && this.hitTest(_root.camera) && _root.char._currentframe != 45 && this._currentframe != 35 && this._currentframe != 40)
  89.                   {
  90.                      this._x += movespeed;
  91.                      _xscale = scale;
  92.                      this.gotoAndStop("run");
  93.                      attack = 0;
  94.                      moving = 1;
  95.                   }
  96.                   else if(this._x > _root.char._x && !attack && !above && !this.hitTest(_root.char) && this._currentframe != 10 && this._currentframe != 15 && this._currentframe != 20 && this._currentframe != 30 && this._currentframe != 25 && this.hitTest(_root.camera) && _root.char._currentframe != 45 && this._currentframe != 35 && this._currentframe != 40)
  97.                   {
  98.                      this._x -= movespeed;
  99.                      _xscale = - scale;
  100.                      this.gotoAndStop("run");
  101.                      attack = 0;
  102.                      moving = 1;
  103.                   }
  104.                   if(_root.char._currentframe == 45)
  105.                   {
  106.                      this.gotoAndStop("idle");
  107.                      moving = 0;
  108.                   }
  109.                   if(!moving && this._currentframe != 5)
  110.                   {
  111.                      moving = 0;
  112.                   }
  113.                   if(this._currentframe == 35)
  114.                   {
  115.                      this._x += movespeed;
  116.                   }
  117.                   jumpHits = 9;
  118.                   i = 1;
  119.                   while(i <= jumpHits)
  120.                   {
  121.                      jumpHit = _root.ground["jumpHit" + i];
  122.                      if(this.hitTest(jumpHit) && moving == 1)
  123.                      {
  124.                         grav = - jumpHeight;
  125.                         _Y = _Y - 4;
  126.                         moving = 0;
  127.                      }
  128.                      i++;
  129.                   }
  130.                   wallsRight = 10;
  131.                   i = 1;
  132.                   while(i <= wallsRight)
  133.                   {
  134.                      wallRight = _root["wallRight" + i];
  135.                      if(wallRight.hitTest(_X + _width / 2 + ex,_Y - _height / 2,true) || wallRight.hitTest(_X + _width / 2 + ex,_Y - _height / 6,true) || wallRight.hitTest(_X + _width / 2 + ex,_Y - _height,true))
  136.                      {
  137.                         speed = 0;
  138.                      }
  139.                      i++;
  140.                   }
  141.                   attack = 0;
  142.                   jumping = 0;
  143.                   if(!jumping && !above && !attack && this._currentframe != 25 && this._currentframe != 20 && this.hitTest(_root.char))
  144.                   {
  145.                      if(this._currentframe != 10 && this._currentframe != 15)
  146.                      {
  147.                         attack1();
  148.                      }
  149.                      if(this._currentframe != 10 && this._currentframe != 15)
  150.                      {
  151.                         attack = 0;
  152.                      }
  153.                   }
  154.                }
  155.             }
  156.             break;
  157.          }
  158.          if(eval("\x01") == 402)
  159.          {
  160.             set("\x01",eval("\x01") + 78);
  161.             ┬º┬ºpush(!function ┬º\x01\x02┬º()
  162.             {
  163.                return 2499 % 511 * 5;
  164.             });
  165.          }
  166.          else
  167.          {
  168.             if(eval("\x01") == 414)
  169.             {
  170.                set("\x01",eval("\x01") - 414);
  171.                break;
  172.             }
  173.             if(eval("\x01") == 480)
  174.             {
  175.                set("\x01",eval("\x01") - 277);
  176.                if(function ┬º\x01\x02┬º()
  177.                {
  178.                   return 2499 % 511 * 5;
  179.                })
  180.                {
  181.                   set("\x01",eval("\x01") + 26);
  182.                }
  183.             }
  184.             else if(eval("\x01") == 530)
  185.             {
  186.                set("\x01",eval("\x01") - 218);
  187.                ┬º┬ºpush("\x0f");
  188.                ┬º┬ºpush(1);
  189.             }
  190.             else
  191.             {
  192.                if(eval("\x01") == 736)
  193.                {
  194.                   set("\x01",eval("\x01") - 106);
  195.                   if(function ┬º\x01\x02┬º()
  196.                   {
  197.                      return 2499 % 511 * 5;
  198.                   }.hitTest() && _root.char._currentframe != 45 && this._currentframe != 35 && this._currentframe != 40)
  199.                   {
  200.                      this._x -= movespeed;
  201.                      _xscale = - scale;
  202.                      this.gotoAndStop("run");
  203.                      attack = 0;
  204.                      moving = 1;
  205.                   }
  206.                   if(_root.char._currentframe == 45)
  207.                   {
  208.                      this.gotoAndStop("idle");
  209.                      moving = 0;
  210.                   }
  211.                   if(!moving && this._currentframe != 5)
  212.                   {
  213.                      moving = 0;
  214.                   }
  215.                   if(this._currentframe == 35)
  216.                   {
  217.                      this._x += movespeed;
  218.                   }
  219.                   jumpHits = 9;
  220.                   i = 1;
  221.                   while(i <= jumpHits)
  222.                   {
  223.                      jumpHit = _root.ground["jumpHit" + i];
  224.                      if(this.hitTest(jumpHit) && moving == 1)
  225.                      {
  226.                         grav = - jumpHeight;
  227.                         _Y = _Y - 4;
  228.                         moving = 0;
  229.                      }
  230.                      i++;
  231.                   }
  232.                   set(┬º┬ºconstant(16),0);
  233.                   set(┬º┬ºconstant(27),0);
  234.                   if(!eval(┬º┬ºconstant(27)) && !eval(┬º┬ºconstant(13)) && !eval(┬º┬ºconstant(16)) && eval(┬º┬ºconstant(5))[┬º┬ºconstant(17)] != 25 && eval(┬º┬ºconstant(5))[┬º┬ºconstant(17)] != 20 && eval(┬º┬ºconstant(5))[┬º┬ºconstant(6)](eval("{invalid_utf8=157}\x0fo")[┬º┬ºconstant(15)]))
  235.                   {
  236.                      if(eval(┬º┬ºconstant(5))[┬º┬ºconstant(17)] != 10 && eval(┬º┬ºconstant(5))[┬º┬ºconstant(17)] != 15)
  237.                      {
  238.                         ┬º┬ºconstant(28)();
  239.                      }
  240.                      if(eval(┬º┬ºconstant(5))[┬º┬ºconstant(17)] != 10 && eval(┬º┬ºconstant(5))[┬º┬ºconstant(17)] != 15)
  241.                      {
  242.                         set(┬º┬ºconstant(16),0);
  243.                      }
  244.                   }
  245.                   break;
  246.                }
  247.                if(eval("\x01") == 630)
  248.                {
  249.                   set("\x01",eval("\x01") - 100);
  250.                }
  251.                else
  252.                {
  253.                   if(eval("\x01") != 371)
  254.                   {
  255.                      break;
  256.                   }
  257.                   set("\x01",eval("\x01") + 159);
  258.                }
  259.             }
  260.          }
  261.       }
  262.    }
  263. }
  264.